<!DOCTYPE html>
<html>
  <head>
    <link rel="icon" href="data:,">
  </head>
  <body>
    <script>
      var count = parseInt(localStorage.getItem("counter") || 0);
      document.write(`Visited ${count} times`)

      setTimeout(function () {
        location.reload();
      }, 1000)

      window.addEventListener("unload", function() {
        localStorage.setItem('counter', ++count)
      }, false);
    </script>
  </body>
</html>
